package com.yundasys.lab08jvm.heap;

import java.math.BigDecimal;
import java.math.RoundingMode;

/**
 * @author jiangta
 * @version 1.0
 * @date 2021/2/5 5:05 下午
 */
public class Test {
    public static void main(String[] args) throws InterruptedException {

        BigDecimal divBig = new BigDecimal(303);
        BigDecimal collegeGrade = new BigDecimal(246).divide(divBig, 2, RoundingMode.HALF_UP).multiply(new BigDecimal(10));
        System.out.println(collegeGrade.intValue());

        Thread.sleep(Integer.MAX_VALUE);

        System.out.println(findResult());
    }

    public static Integer findResult() {
        Integer aInteger =5;
        try {
            return aInteger =6;
        } catch(Exception e) {
            return aInteger = 7;
        }finally {
            return aInteger =8;
        }
    }
}
